<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 这句是css必要代码 */
        * {
            margin: 0;
            padding: 0
        }

        div {
            width: 200px;
            height: 200px;
            background-color: pink;
            margin: 100px auto;
            /* display: inline-block; */
        }
    </style>

</head>

<body>
    <div>1</div>
    <div>2</div>

</body>

</html>